package edu.bbu.bs.backend.repository;

import java.util.List;

import edu.bbu.bs.backend.model.AbstractModel;
import edu.bbu.bs.backend.repository.exceptions.RepositoryException;

public interface BaseRepository<T extends AbstractModel, I> {

	List<T> getAll() throws RepositoryException;
	T getById (I id) throws RepositoryException;
	T save (T item) throws RepositoryException;
	T merge (T item) throws RepositoryException;
	void delete (T item) throws RepositoryException;
}
